← Back to issue list

Organize leaves empty parent directories behind

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1621980
Type
issue
State
open
Author
~kyrofa
Labels
Created
2016-09-09 19:12:07.415903+00:00
Updated
2016-09-16 21:04:32.592278+00:00
Closed

Current evaluation

No evaluation has been recorded for this issue yet.

Issue body

Say I have the following layout: src/foo/configs/my.conf src/foo/scripts/start-my-thing And my YAML: # [...] parts:     my-part:         plugin: dump         source: src/foo         organize:             configs/my.conf: my-conf-dir/my.conf             scripts/start-my-thing: bin/start-my-thing As things are now, the snap will contain an empty `configs` directory as well as an empty `scripts` directory, which need to be filtered out via the `stage`/`snap` keywords. This is probably something that can be fixed in the organize code (removing empty parent directories) instead of expecting the user to track it.

Evaluation history

No evaluation history available.